thistle = gr.material({0.85, 0.75, 0.85}, {0.8, 0.8, 0.4}, 25)
firebrick = gr.material({0.7,0.13,0.13}, {1.0, 1.0, 1.0}, 25, 0.0)
brown = gr.material({0.545,0.27,0.075}, {1.0, 1.0, 1.0}, 25, 0.0)
yellow = gr.material({1.0,1.0,0}, {1.0, 1.0, 1.0}, 25, 0.0)

house = gr.node('house')

house_body = gr.cube('house_body')
house:add_child(house_body)
house_body:set_material(thistle)
house_body:scale(7, 5, 5)

house_top = gr.cube('house_top')
house:add_child(house_top)
house_top:set_material(firebrick)
house_top:scale(5,5,5)
house_top:translate(0.7,0.3,0)
house_top:rotate('Z',45)

house_door = gr.cube('house_door')
house:add_child(house_door)
house_door:set_material(brown)
house_door:scale(2,3,1)
house_door:translate(0.7,0,4.1)

house_window = gr.cube('house_window')
house:add_child(house_window)
house_window:set_material(yellow)
house_window:scale(2,2,1)
house_window:translate(2.0,1.0,4.1)